<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<span id="show">
			
		</span>
		<script type="text/javascript">
			function Person(nation,skinColor){
				this.nation=nation;
				this.skinColor=skinColor;
			}
			Person.prototype.showNat=function(){
				return this.nation;
			}
			Person.prototype.showSkin=function(){
				return this.skinColor;
			}
			function Woman(nation,skinColor,sex){
				Person.call(this,nation,skinColor);
				this.sex=sex;
			}
			Woman.prototype=new Person();
			Woman.prototype.showSex=function(){
				return this.sex;
			}
			var woman1=new Woman("汉族","黄色","女");
			document.getElementById("show").innerHTML="民族"+woman1.showNat()+"<br/>"+
			"肤色"+woman1.showSkin()+"<br/>"+"性别"+woman1.showSex();
		</script>
	</body>
</html>
